package com.catering.controller;

import com.catering.service.CateringGroupInvitationsService;
import com.catering.until.Log;
import com.catering.until.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;


@RestController
@RequestMapping("/cateringGroupInvitations")
public class CateringGroupInvitationsController {

	@Autowired
	private CateringGroupInvitationsService cateringGroupInvitationsSevice;
	
	@RequestMapping("/select")
	public ResultData select(@RequestBody Map<String,String> map) {
		return cateringGroupInvitationsSevice.select(map);
	}
	@RequestMapping("/selectBuying")
	public ResultData selectBuying(@RequestBody Map<String,String> map) {
		return cateringGroupInvitationsSevice.selectBuying(map);
	}

	@Log(operation = "新增" , remark="【拼团邀请】新增拼团邀请" , type = "3")
	@RequestMapping("/insert")
	public ResultData insert(@RequestBody Map<String,String> map) {
		return cateringGroupInvitationsSevice.insert(map);
	}
	
	@Log(operation = "修改" , remark="【拼团邀请】修改拼团邀请" , type = "3")
	@RequestMapping("/update")
	public ResultData update(@RequestBody Map<String,String> map) {
		return cateringGroupInvitationsSevice.update(map);
	}
	
	@Log(operation = "删除" , remark="【拼团邀请】删除拼团邀请" , type = "3")
	@RequestMapping("/delete")
	public ResultData delete(@RequestBody Map<String,String> map) {
		return cateringGroupInvitationsSevice.delete(map);
	}
	
}
